var Event = new Vue();
var userInfo = {
    id: '',
    userName: '',
    url: ''
};
const store = new Vuex.Store({
    state: {
        contacts: '',
        groupList: [],
        structureList: [],
        staffList: [],
        structureTitle: [{"orgName": "", "orgID": 1}],
        contactsChecked: [],
        groupChecked: [],
    },
    mutations: {
        test1: function (state, val) {
            //@click="$store.commit('test1')"     store.commit('test1',111);
        },
        get_contacts: function () {

        },
    },
    getters: {
        contactsListLength: function (state) {
            return state.contacts.length;
        },
        groupListLength: function (state) {
            return state.groupList.length;
        },
        structureListLength: function (state) {
            return state.structureList.length;
        },
        staffListLength: function (state) {
            return state.staffList.length;
        },
    }
});
const routes = [
    {userName: 'index', path: '/', component: index},
    {userName: 'btn', path: '/btn', component: btnList},
    {userName: 'calendar', path: '/calendar', component: calendar},
    {userName: 'contacts', path: '/contacts', component: contactsPage},
];
const router = new VueRouter({
    routes: routes
});
var vm = new Vue({
    store: store,
    router: router,
    data:{
        showFlag:{
            contacts:false
        }
    }
});